(function(){
  'use strict';

  angular.module('home')
         .config(['$routeProvider', '$locationProvider', HomeRoutes]);

  function HomeRoutes($routeProvider, $locationProvider, $q){
    $routeProvider
      .when('/home', {
        templateUrl: '/src/pages/home/view/content.html',
        controller: 'HomeController',
        controllerAs: 'page'
      })
      /*.when('/', {
        templateUrl: '/src/pages/home/view/content.html',
        controller: 'HomeController',
        controllerAs: 'page'
      })*/.otherwise({redirectTo:'/home'});;
  }

})();
